import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SEntityId } from "../Public/SEntityId";
import { SIslandPos } from "./SIslandPos";
type int = number;
//class SRobIslandFightingInfo
    
    export  class SRobIslandFightingInfo
    {
       

        public __write(arg1: SerializeStream): void
        {
            this.attackGuildId.__write(arg1);
            arg1.writeString(this.attackGuildName);
            this.defenseGuildId.__write(arg1);
            arg1.writeString(this.defenseGuildName);
            arg1.writeInt(this.placeId);
            this.pos.__write(arg1);
            arg1.writeDate(this.startDt);
            arg1.writeInt(this.startSeconds);
            return;
        }

        public __read(arg1: SerializeStream): void
        {
            this.attackGuildId = new SEntityId();
            this.attackGuildId.__read(arg1);
            this.attackGuildName = arg1.readString();
            this.defenseGuildId = new SEntityId();
            this.defenseGuildId.__read(arg1);
            this.defenseGuildName = arg1.readString();
            this.placeId = arg1.readInt();
            this.pos = new SIslandPos();
            this.pos.__read(arg1);
            this.startDt = arg1.readDate();
            this.startSeconds = arg1.readInt();
            return;
        }

        public /* var */attackGuildId: SEntityId;

        public /* var */attackGuildName: string;

        public /* var */defenseGuildId: SEntityId;

        public /* var */defenseGuildName: string;

        public /* var */placeId: int;

        public /* var */pos: SIslandPos;

        public /* var */startDt: Date;

        public /* var */startSeconds: int;
    }
